package com.loc;

/* compiled from: TWifiInfo.java */
/* loaded from: classes2.dex */
public final class ds extends ge {
    private static int a(gd gdVar) {
        return gdVar.b();
    }

    public static int a(gd gdVar, boolean z, long j, short s, int i, short s2, short s3) {
        gdVar.b(6);
        a(gdVar, j);
        a(gdVar, i);
        c(gdVar, s3);
        b(gdVar, s2);
        a(gdVar, s);
        a(gdVar, z);
        return a(gdVar);
    }

    private static void a(gd gdVar, int i) {
        gdVar.b(3, i);
    }

    private static void a(gd gdVar, long j) {
        gdVar.a(1, j);
    }

    private static void a(gd gdVar, short s) {
        gdVar.a(2, s);
    }

    private static void a(gd gdVar, boolean z) {
        gdVar.a(z);
    }

    private static void b(gd gdVar, short s) {
        gdVar.a(4, s);
    }

    private static void c(gd gdVar, short s) {
        gdVar.a(5, s);
    }
}
